package StnNetworkResourcesNRMSystem;
/**
 * Generated from IDL enum "MtpLinkTypeType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class MtpLinkTypeType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _TDM_64K = 0;
	public static final MtpLinkTypeType TDM_64K = new MtpLinkTypeType(_TDM_64K);
	public static final int _TDM_2M = 1;
	public static final MtpLinkTypeType TDM_2M = new MtpLinkTypeType(_TDM_2M);
	public static final int _ATM = 2;
	public static final MtpLinkTypeType ATM = new MtpLinkTypeType(_ATM);
	public int value()
	{
		return value;
	}
	public static MtpLinkTypeType from_int(int value)
	{
		switch (value) {
			case _TDM_64K: return TDM_64K;
			case _TDM_2M: return TDM_2M;
			case _ATM: return ATM;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _TDM_64K: return "TDM_64K";
			case _TDM_2M: return "TDM_2M";
			case _ATM: return "ATM";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected MtpLinkTypeType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
